package com.keba.lamp.complaint.controller;

import com.keba.basic.base.R;
import com.keba.basic.database.mybatis.conditions.Wraps;
import com.keba.basic.database.mybatis.conditions.query.QueryWrap;
import com.keba.basic.interfaces.echo.EchoService;
import com.keba.basic.utils.BeanPlusUtil;
import com.keba.lamp.file.service.AppendixService;
import com.keba.lamp.file.service.FileService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import com.keba.basic.base.controller.SuperController;
import com.keba.lamp.complaint.service.ChannelCustomerService;
import com.keba.lamp.complaint.entity.ChannelCustomer;
import com.keba.lamp.complaint.vo.save.ChannelCustomerSaveVO;
import com.keba.lamp.complaint.vo.update.ChannelCustomerUpdateVO;
import com.keba.lamp.complaint.vo.result.ChannelCustomerResultVO;
import com.keba.lamp.complaint.vo.query.ChannelCustomerPageQuery;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 * 前端控制器
 * 渠道客户
 * </p>
 *
 * @author twg
 * @date 2025-04-15 23:21:22
 * @create [2025-04-15 23:21:22] [twg] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Validated
@RestController
@RequestMapping("/channelCustomer")
@Tag(name = "渠道客户")
public class ChannelCustomerController extends SuperController<ChannelCustomerService, Long, ChannelCustomer
        , ChannelCustomerSaveVO, ChannelCustomerUpdateVO, ChannelCustomerPageQuery, ChannelCustomerResultVO> {
    private final EchoService echoService;


    @Override
    public EchoService getEchoService() {
        return echoService;
    }

    @Override
    public R<List<ChannelCustomerResultVO>> query(ChannelCustomerPageQuery data) {
        return success(superService.list(data));
    }
}


